package com.gxa.entity.commserve;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author yjl
 * @since 2022-10-12 11:18:00
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("t_repair")
@ApiModel(value = "Repair对象", description = "")
public class Repair implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键 ")
    @TableId(value = "repair_id", type = IdType.AUTO)
    private Integer repairId;

    @ApiModelProperty(value = "工单编号 ")
    @TableField("work_order")
    private String workOrder;

    @ApiModelProperty(value = "报修地址 ")
    @TableField("repair_address")
    private String repairAddress;

    @ApiModelProperty(value = "报修内容 ")
    @TableField("repair_content")
    private String repairContent;

    @ApiModelProperty(value = "报修时间 ")
    @TableField("repair_time")
    private Date repairTime;

    @ApiModelProperty(value = "处理时间 ")
    @TableField("processing_time")
    private Date processingTime;

    @ApiModelProperty(value = "状态(0:待受理,1:待派单,2:待接单,3:处理中,4:y已完成) ")
    @TableField("state")
    private Integer state;


    @ApiModelProperty(value = "报修人")
    @TableField("repairer")
    private String repairer;

    @ApiModelProperty(value = "联系电话")
    @TableField(value = "contact_number")
    private String contactNumber;

    @ApiModelProperty(value = "假删除")
    @TableField("is_delete")
    @TableLogic
    private Integer isDelete;
}
